package demo.admin.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

@Data
public class ExampleSaveRequestVO {

    @ApiModelProperty(value = "id",example = "1")
    private Integer id;

    @ApiModelProperty(value = "标题",example = "测试标题")
    private String title;

    @ApiModelProperty(value = "作者",example = "测试作者")
    private String author;

    @ApiModelProperty(value = "创建时间",example = "2025-08-03 00:00:00")
    @JsonProperty("display_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "重要性",example = "1")
    private Integer importance;

    @ApiModelProperty(value = "阅读数",example = "10")
    private Integer pageviews;

    @ApiModelProperty(value = "内容",example = "<p>测试内容</p>")
    public String content;
}
